<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人信息</title>
</head>
<link rel="stylesheet" type="text/css" href="../css/common.css"/>
<link rel="stylesheet" type="text/css" href="../css/main.css"/>
<script type="text/javascript" src="../js/modernizr.min.js"></script>
<script type="text/javascript" src="../js/jquery-1.11.0.min.js"></script>
<script>
    $(function () {
        //调用公共header
        $('#left').load('left.html');
        $('#header').load('header.html');
        
        $.get("../user/getLoginInfo.do",{},function (data) {
            $("#uid").val(data.uid);
            $("#name").val(data.name);
            $("#username").val(data.username);
            $("#birthday").val(data.birthday);
            $("#phone").val(data.phone);
            $("#email").val(data.email);
            var sex = $("#sex");
            if(data.sex == 0){
                sex.val("男");
            }else if(data.sex == 1){
                sex.val("女");
            }else {
                sex.val("查询错误！");
            }
            var uType = $("#uType");
            if(data.uType == 0){
                uType.val("会员");
            }else if(data.uType == 1){
                uType.val("商家");
            }else if(data.uType == 2){
                uType.val("系统管理员");
            }
        });
    });
    
</script>
<body>

<div class="container clearfix">
    <div id="header"></div>
    <div id="left"></div>
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="index.html">首页</a><span
                    class="crumb-step">&gt;</span><span class="crumb-name">个人信息</span></div>
        </div>
        <div class="result-wrap">
            <form action="#" method="post" id="upbk_form">
                <input hidden type="text" value="" id="bid" name="bid" disabled>
                <div class="config-items">
                    <div class="config-title">
                        <h1><i class="icon-font">&#xe00a;</i>我的信息</h1>
                    </div>
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tbody>
                            <tr>
                                <th width="15%"><i class="require-red">*</i>波克Id：</th>
                                <td><input type="text" name="uid" id="uid" class="common-text" disabled></td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>姓名：</th>
                                <td><input type="text" name="name" id="name" class="common-text" disabled></td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>用户名：</th>
                                <td>
                                    <input type="text" name="username" id="username" class="common-text" disabled>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>出生日期：</th>
                                <td><input type="date" id="birthday" name="birthday" class="common-text" disabled></td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>性别：</th>
                                <td><input type="text" id="sex" name="sex" class="common-text" disabled></td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>电话号码：</th>
                                <td><input type="text" name="phone" id="phone" class="common-text" disabled></td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>邮箱：</th>
                                <td><input type="text" name="email" id="email" class="common-text" disabled></td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>用户类别：</th>
                                <td><input type="text" name="uType" id="uType" class="common-text" disabled></td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <!--<input type="submit" value="提交" class="btn btn-primary btn6 mr10">-->
                                    <!-- <input type="submit" value="提交" class="btn btn-primary btn6 mr10" id="submit"> -->
                                    <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>